package com.gcit.seniorWish.web.modular.portal.service;

import com.gcit.seniorWish.web.common.constant.cache.Cache;
import com.gcit.seniorWish.web.common.constant.cache.CacheKey;
import com.gcit.seniorWish.web.common.persistence.model.SeniorExaminee;
import com.gcit.seniorWish.web.common.persistence.model.SeniorWish;
import com.baomidou.mybatisplus.service.IService;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 志愿表 服务类
 * </p>
 *
 * @author gaozhichang
 * @since 2018-03-22
 */
public interface ISeniorWishService extends IService<SeniorWish> {

	@Transactional
	void mergeSeniorWish(SeniorWish seniorWish) throws IllegalAccessException;

    SeniorWish seniorWishDetail(String examineeId) throws IllegalAccessException;

	@Transactional
	@CacheEvict(value = Cache.BUSS, key = "'" + CacheKey.EXAMINEE_INFO_BY_EXAM_CARD + "'+#examCardNumber")
	void confirmSeniorWish(String examCardNumber);

	List<SeniorExaminee> listSeniorExamineeWithSeniorWish(List<String> examineeIdList);



}
